/**
 * @作者 Luke
 * @微信公号 欧诺的小书屋
 * @开源项目 $ http://7yue.pro
 * @免费专栏 $ http://course.7yue.pro
 * @我的课程 $ http://imooc.com/t/4294850
 * @创建时间 2020-6-21 22:30
 */
package io.github.talelin.latticy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.talelin.latticy.model.ChapterItemDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChapterItemMapper extends BaseMapper<ChapterItemDO> {

    ChapterItemDO getById(@Param(value = "id") Long id);

    List<ChapterItemDO> getByCourseIdAndChapterId(@Param(value = "courseId") Long courseId,
                                                 @Param(value = "chapterId") Long chapterId);
}
